/*
 * @Author: xujianxing
 * @Date: 2020-02-14 16:58:59
 * @LastEditors  : xujianxing
 * @LastEditTime : 2020-02-21 17:17:46
 * @Description: file content
 */
var express = require("express");
var router = express.Router();

var Controller = require("../controller/users");

/* GET users listing. */
router.get("/", function(req, res, next) {
  res.send("respond with a resource");
});

router.post("/login", Controller.loginController);
router.post("/register", Controller.registerController);
router.post("/update", Controller.updateInfoController);
router.get("/getUser", Controller.getUserController);
router.get("/getUserList", Controller.getUserListController);

router.get("/msgList", Controller.getMessageListController);
router.post("/readMessage", Controller.readMessageController);

module.exports = router;
